
const _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault');

exports.__esModule = true;
exports.default = void 0;

const _babelHelperVueJsxMergeProps = _interopRequireDefault(require('@vue/babel-helper-vue-jsx-merge-props'));

const _utils = require('../../utils');

const _functional = require('../../utils/functional');

const _constant = require('../../utils/constant');

// Utils
const _createNamespace = (0, _utils.createNamespace)('sku-row');
const createComponent = _createNamespace[0];
const bem = _createNamespace[1];
const t = _createNamespace[2];

function SkuRow(h, props, slots, ctx) {
  const multipleNode = props.skuRow.is_multiple && h('span', {
    class: bem('title-multiple'),
  }, ['\uFF08', t('multiple'), '\uFF09']);
  return h('div', (0, _babelHelperVueJsxMergeProps.default)([{
    class: [bem(), _constant.BORDER_BOTTOM],
  }, (0, _functional.inherit)(ctx)]), [h('div', {
    class: bem('title'),
  }, [props.skuRow.k, multipleNode]), slots.default && slots.default()]);
}

SkuRow.props = {
  skuRow: Object,
};

const _default = createComponent(SkuRow);

exports.default = _default;
